/**
 * Created by xaiodoudou on 2017/12/13.
 */
var sqlAll = require('../utils/mysqlAll'); // 执行多条数据的函数
module.exports = {
  checkUser : function(uname,callback) {
    sqlAll('select * from user where uname=?',[uname]).then((data)=>{
      callback(data);
    })
  }
}